<%@page import="java.util.List"%>
<%@page import="com.project.vo.Picture"%>
<%@page import="com.project.vo.Product"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%
	Product product = (Product) request.getAttribute(StringUtil.PRODUCT);
	List<Picture> pictures = (List<Picture>) request.getAttribute(StringUtil.PICTURES);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<%@ include file="/WEB-INF/jsp/include/head.jsp"%>
<title>查看服装信息</title>
</head>
<body>
	<%@ include file="/WEB-INF/jsp/include/admin/top.jsp"%>
	<%@ include file="/WEB-INF/jsp/include/admin/left.jsp"%>
	<div class="main col-lg-9 col-md-9 col-xs-12 col-sm-12">
		<table class="table col-lg-12 col-md-12 col-xs-12 col-sm-12">
			<tr>
				<th>服装名称:</th>
				<td><%=product.getName()%></td>
			</tr>
			<tr>
				<th>服装描述:</th>
				<td><%=product.getDescription()%></td>
			</tr>
			<tr>
				<th>服装价格:</th>
				<td><%=product.getPrice()%></td>
			</tr>
			<tr>
				<th>库存数量:</th>
				<td><%=product.getNum()%></td>
			</tr>
			<tr>
				<th>服装类别:</th>
				<td><%=product.getKind_id()%></td>
			</tr>
			<tr>
				<th>上传时间:</th>
				<td><%=product.getDate() %></td>
			</tr>
			<tr>
				<th>链接地址:</th>
				<td><a href="<%=product.getUrl()%>"><%=product.getUrl()%></a></td>
			</tr>
			<% basePath = StringUtil.CLIENTBASEPATH; //前端的根路径%>
			<%
				for (Picture picture : pictures) {
			%>
			<tr id="imagetr" class="imagetr">
				<th>图片:</th>
<%-- 			<td><img alt="welcome" src="<%=basePath1%>/resources/images/scu.png" style="height: 100px; width:120px"></td> --%>
				<td><img alt="<%=StringUtil.IMGALT%>"
					src="<%=basePath%>/<%=picture.getPath()%>" name='pictures' style="height: 100px; width:120px"></td>
			
			</tr>
			<%
				}
			%>
		</table>
	</div>
	<%@ include file="/WEB-INF/jsp/include/bottom.jsp"%>
</body>
</html>